<?php /*a:3:{s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\deliver\index.html";i:1591758938;s:64:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\header.html";i:1571626691;s:69:"D:\phpstudy_pro\WWW\git\DSShop\app\admin\view\public\admin_items.html";i:1566788179;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>DSShop单店铺商城系统后台</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
        <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
        <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
        <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/dialog/dialog.js" id="dialog_js" charset="utf-8"></script>

        <script type="text/javascript">
            var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
            var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
            var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
            var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
            var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
        </script>
    </head>
    <body>
        <div id="append_parent"></div>
        <div id="ajaxwaitid"></div>







<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3><?php echo htmlentities(lang('ds_deliver')); ?></h3>
                <h5></h5>
            </div>
            <?php if($admin_item): ?>
<ul class="tab-base ds-row">
    <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
    <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
    <?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
<?php endif; ?>
        </div>
    </div>
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom">
            <h4 title="<?php echo htmlentities(lang('ds_explanation_tip')); ?>"><?php echo htmlentities(lang('ds_explanation')); ?></h4>
            <span id="explanationZoom" title="<?php echo htmlentities(lang('ds_explanation_close')); ?>" class="arrow"></span>
        </div>
        <ul>
            <li><?php echo htmlentities(lang('shopping_guidelines1')); ?></li>
            <li><?php echo htmlentities(lang('shopping_guidelines2')); ?></li>
            <li><?php echo htmlentities(lang('shopping_guidelines3')); ?></li>
        </ul>
    </div>


    <form method="get" name="formSearch" id="formSearch">
        <input type="hidden" name="state" value="<?php echo htmlentities(app('request')->param('state')); ?>"/>
        <div class="ds-search-form">
            <dl>
                <dt><?php echo htmlentities(lang('order_time')); ?></dt>
                <dd>
                    <input type="text" class="text w70" name="query_start_date" id="query_start_date" value="<?php echo htmlentities(app('request')->param('query_start_date')); ?>"/>
                    <input id="query_end_date" class="text w70" type="text" name="query_end_date" value="<?php echo htmlentities(app('request')->param('query_end_date')); ?>"/>
                </dd>
                <dt><?php echo htmlentities(lang('buyer_name')); ?></dt>
                <dd><input type="text" class="text w80" name="buyer_name" value="<?php echo htmlentities(app('request')->param('buyer_name')); ?>"/></dd>
                <dt><?php echo htmlentities(lang('order_order_sn')); ?></dt>
                <dd><input type="text" class="text w150" name="order_sn" value="<?php echo htmlentities(app('request')->param('order_sn')); ?>"/></dd>
            </dl>
            <div class="btn_group">
                <input type="submit" class="btn left" value="搜索">
                <a href="<?php echo url('Deliver/index'); ?>" class="btn btn-default left" title="<?php echo htmlentities(lang('ds_cancel')); ?>"><?php echo htmlentities(lang('ds_cancel')); ?></a>
            </div>
        </div>
    </form>

    <table class="ds-default-table">
        <tbody>
        <?php if(!(empty($order_list) || (($order_list instanceof \think\Collection || $order_list instanceof \think\Paginator ) && $order_list->isEmpty()))): if(is_array($order_list) || $order_list instanceof \think\Collection || $order_list instanceof \think\Paginator): if( count($order_list)==0 ) : echo "" ;else: foreach($order_list as $order_id=>$order): ?>
        <tr>
            <td colspan="21" class="sep-row"></td>
        </tr>
        <tr>
            <th colspan="21"><span class="ml5"><?php echo htmlentities(lang('order_order_sn')); ?><?php echo htmlentities(lang('ds_colon')); ?><strong><?php echo htmlentities($order['order_sn']); ?></strong></span><span><?php echo htmlentities(lang('order_time')); ?><?php echo htmlentities(lang('ds_colon')); ?><em
                    class="goods-time"><?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($order['add_time'])? strtotime($order['add_time']) : $order['add_time'])); ?></em></span>
                <?php if(!empty($order['extend_order_common']['shipping_time'])): ?>
                <span><?php echo htmlentities(lang('ship_time')); ?><?php echo htmlentities(lang('ds_colon')); ?><em class="goods-time"><?php echo htmlentities(date("Y-m-d H:i:s",!is_numeric($order['extend_order_common']['shipping_time'])? strtotime($order['extend_order_common']['shipping_time']) : $order['extend_order_common']['shipping_time'])); ?></em></span>
                <?php endif; ?>
                <span class="fr mr10">
                            <?php if($order['shipping_code'] != ''): ?>
                            <a href="<?php echo url('Deliver/search_deliver',['order_sn'=>$order['order_sn']]); ?>" class="dssc-btn-mini"><i
                                    class="iconfont">&#xe69e;</i><?php echo htmlentities(lang('order_show_deliver')); ?></a>
                            <?php endif; ?>
                    <a href="<?php echo url('Order/order_print',['order_id'=>$order['order_id']]); ?>" class="dssc-btn-mini fr" target="_blank" title="打印发货单"><i
                            class="iconfont">&#xe7ca;</i>打印发货单</a>
                        </span>
            </th>
        </tr>
        <?php $i = 0; if(is_array($order['goods_list']) || $order['goods_list'] instanceof \think\Collection || $order['goods_list'] instanceof \think\Paginator): if( count($order['goods_list'])==0 ) : echo "" ;else: foreach($order['goods_list'] as $k=>$goods): $i++; ?>
        <tr>
            <td class="bdl w10"></td>
            <td class="w50">
                <div class="pic-thumb"><a href="<?php echo htmlentities($goods['goods_url']); ?>" ><img class="img" width="80" height="80" src="<?php echo goods_thumb($goods, 240); ?>"/></a></div>
            </td>
            <td class="tl">
                <dl class="goods-name">
                    <dt><a href="<?php echo htmlentities($goods['goods_url']); ?>"><?php echo htmlentities($goods['goods_name']); ?></a></dt>
                    <dd><strong>￥<?php echo htmlentities($goods['goods_price']); ?></strong>&nbsp;x&nbsp;<em><?php echo htmlentities($goods['goods_num']); ?></em><?php echo htmlentities(lang('piece')); ?></dd>
                </dl>
            </td>

            <!-- S 合并TD -->
            <?php if(($order['goods_count'] > 1 && $k == 0) || ($order['goods_count'] == 1)): ?>
            <td class="bdl bdr order-info w500" rowspan="<?php echo htmlentities($order['goods_count']); ?>">
                <dl>
                    <dt><?php echo htmlentities(lang('buyer_name')); ?><?php echo htmlentities(lang('ds_colon')); ?>
                        <?php echo htmlentities($order['buyer_name']); ?> <span member_id="<?php echo htmlentities($order['buyer_id']); ?>"></span>
                        <?php if(!empty($order['extend_member']['member_qq'])): ?>
                        <a target="_blank"
                           href="<?php echo htmlentities(HTTP_TYPE); ?>wpa.qq.com/msgrd?v=3&uin=<?php echo htmlentities($order['extend_member']['member_qq']); ?>&site=qq&menu=yes"><img border="0" src="<?php echo htmlentities(HTTP_TYPE); ?>wpa.qq.com/pa?p=2:<?php echo htmlentities($order['extend_member']['member_qq']); ?>:52" style=" vertical-align: middle;"/></a>
                        <?php endif; if(!empty($order['extend_member']['member_ww'])): ?>
                        <a target="_blank"
                           href="http://amos.im.alisoft.com/msg.aw?v=2&uid=<?php echo htmlentities($order['extend_member']['member_ww']); ?>&site=cntaobao&s=2&charset=utf-8"
                           class="vm"><img border="0"
                                           src="http://amos.im.alisoft.com/online.aw?v=2&uid=<?php echo htmlentities($order['extend_member']['member_ww']); ?>&site=cntaobao&s=2&charset=utf-8"
                                           alt="Wang Wang" style=" vertical-align: middle;"/></a>
                        <?php endif; ?>
                    </dt>
                </dl>
                <dl>
                    <dt><?php echo htmlentities(lang('member_address_receiver_name')); ?><?php echo htmlentities(lang('ds_colon')); ?></dt>
                    <dd>
                        <div class="alert alert-info m0">
                            <p><i class="iconfont">&#xe667;</i><?php echo htmlentities($order['extend_order_common']['reciver_name']); ?></p>
                            <p><span class="ml30" title="<?php echo htmlentities(lang('order_phone')); ?>"><i class="iconfont">&#xe697;</i><?php echo htmlentities($order['extend_order_common']['reciver_info']['phone']); ?></span></p>
                            <p class="mt5" title="<?php echo htmlentities(lang('deliver_buyer_address')); ?>"><i class="iconfont">&#xe720;</i><?php echo htmlentities($order['extend_order_common']['reciver_info']['address']); ?>
                            </p>
                            <?php if($order['extend_order_common']['order_message'] != ''): ?>
                            <p class="mt5" title="<?php echo htmlentities(lang('deliver_buyer_address')); ?>"><i class="iconfont">&#xe720;</i><?php echo htmlentities($order['extend_order_common']['order_message']); ?>
                            </p>
                            <?php endif; ?>
                        </div>
                    </dd>
                </dl>
                <dl>
                    <dt><?php echo htmlentities(lang('order_total_transport')); ?><?php echo htmlentities(lang('ds_colon')); ?></dt>
                    <dd>
                        <?php if(!empty($order['shipping_fee']) && $order['shipping_fee'] != '0.00'): ?>
                        ￥<?php echo htmlentities($order['shipping_fee']); else: ?>
                        （<?php echo htmlentities(lang('product_shipping_mfee')); ?>）
                        <?php endif; if(empty($order['lock_state'])): if($order['order_state'] == ORDER_STATE_PAY): if(!isset($order['pintuanorder_state']) || $order['pintuanorder_state']==2): ?>
                        <span><a href="<?php echo url('Deliver/send',['order_id'=>$order['order_id']]); ?>" class="dssc-btn-mini dssc-btn-green fr"><i
                                class="iconfont">&#xe6f1;</i><?php echo htmlentities(lang('order_send')); ?></a></span>
                        <?php else: ?>
                        <span><?php echo htmlentities($order['pintuanorder_state_text']); ?></span>
                        <?php endif; elseif($order['order_state'] == ORDER_STATE_SEND): ?>
                        <span>
                            <a href="<?php echo url('Deliver/send',['order_id'=>$order['order_id']]); ?>" class="dssc-btn-mini dssc-btn-acidblue fr"><i
                                    class="iconfont">&#xe731;</i><?php echo htmlentities(lang('deliver_modify_info')); ?></a>
                                </span>
                        <?php endif; ?>
                        <?php endif; ?>
                    </dd>
                </dl>
            </td>
            <?php endif; ?>
            <!-- E 合并TD -->
        </tr>

        <!-- S 赠品列表 -->
        <?php if(!empty($order['zengpin_list']) && $i == count($order['goods_list'])): ?>
        <tr>
            <td class="bdl w10"></td>
            <td colspan="2" class="tl">
                <div class="dssc-goods-gift"><?php echo htmlentities(lang('deliver_gifts')); ?>：
                    <ul>
                        <?php if(is_array($order['zengpin_list']) || $order['zengpin_list'] instanceof \think\Collection || $order['zengpin_list'] instanceof \think\Paginator): if( count($order['zengpin_list'])==0 ) : echo "" ;else: foreach($order['zengpin_list'] as $k=>$zengpin_info): ?>
                        <li><a title="<?php echo htmlentities(lang('deliver_gifts')); ?>：<?php echo htmlentities($zengpin_info['goods_name']); ?> * <?php echo htmlentities($zengpin_info['goods_num']); ?>"
                               href="<?php echo htmlentities($zengpin_info['goods_url']); ?>" target="_blank"><img src="<?php echo goods_thumb($zengpin_info, 240); ?>"/></a></li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>
                    </ul>
                </div>
            </td>
        </tr>
        <?php endif; ?>
        <!-- E 赠品列表 -->

        <?php endforeach; endif; else: echo "" ;endif; ?>
        <?php endforeach; endif; else: echo "" ;endif; else: ?>
        <tr>
            <td colspan="21" class="norecord">
                <div class="warning-option"><i class="iconfont">&#xe64c;</i><span><?php echo htmlentities(lang('no_record')); ?></span></div>
            </td>
        </tr>
        <?php endif; ?>
        </tbody>
        <tfoot>
        <?php if(!(empty($order_list) || (($order_list instanceof \think\Collection || $order_list instanceof \think\Paginator ) && $order_list->isEmpty()))): ?>
        <tr>
            <td colspan="21">
                <div class="pagination"></div>
            </td>
        </tr>
        <?php endif; ?>
        </tfoot>
    </table>
    <?php echo $show_page; ?>
</div>


<script type="text/javascript">
    $(function () {
        $('#query_start_date').datepicker({dateFormat: 'yy-mm-dd'});
        $('#query_end_date').datepicker({dateFormat: 'yy-mm-dd'});
    });
</script>


